﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Sys.Repository.Entities
{
    /// <summary>
    /// 课程信息 
    /// </summary>
    [Table("sys_EduCourse"), Comment("课程信息")]
    public class EduCourse : EfEntity
    {
        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 分组
        /// </summary>
        [Comment("分组")]
        public long Group { get; set; }

        /// <summary>
        /// 心学院老师ID
        /// </summary>
        [Comment("心学院老师ID")]
        public long Teacher { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [Comment("标题"),MaxLength(2000)]
        public string Title { get; set; }

        /// <summary>
        /// 课程介绍
        /// </summary>
        [Comment("课程介绍"), MaxLength(2000)]
        public string Introduction { get; set; }

        /// <summary>
        /// 课程说明
        /// </summary>
        [Comment("课程说明"), MaxLength(2000)]
        public string Wikipedia { get; set; }

        /// <summary>
        /// 课程图片
        /// </summary>
        [Comment("课程图片"),MaxLength(2000)]
        public string ImageAddress { get; set; }

        /// <summary>
        /// 课程等级 0：所有人可见，其他则大于其等级可见
        /// </summary>
        [Comment("课程等级 0：所有人可见，其他则大于其等级可见")]
        public int Grade { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [Comment("状态")]
        public bool Deleted { get; set; }
    }
}
